package com.zkjl.protect_business.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel(description = "文件通知实体")
public class NoticeDTO {

    @ApiModelProperty(value = "通知名称")
    @NotBlank(message = "通知名称不能为空")
    private String name;

    @ApiModelProperty(value = "通知单位")
    @Field(name = "org_ids")
    @NotEmpty(message = "通知单位不能为空")
    private List<String> orgIds;

    @ApiModelProperty(value = "通知内容")
    private String content;

    @ApiModelProperty(value = "附件ids")
    @Field(name = "attachment_ids")
    private List<String> attachmentIds;

    @ApiModelProperty(value = "是否可下载")
    private Boolean isdownload;

    @ApiModelProperty(value = "通知开始时间")
    @Field(name = "start_time")
    private String startTime;

    @ApiModelProperty(value = "通知开始时间")
    @Field(name = "end_time")
    private String endTime;


}
